import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import 'katex/dist/katex.min.css'; //公式扩展


import router from './router'
import axios from 'axios'
import Elementplus from 'element-plus'
import 'element-plus/dist/index.css'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'


const pinia = createPinia()
// pinia 持久化
pinia.use(piniaPluginPersistedstate)
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
// app.use(axios)
app.use(pinia)
app.use(router)
app.use(Elementplus)
app.mount('#app')
